import axios from './axios';

// getDraft({page:1,size:20})
export const getDraft = (params)=>
    axios.get('/draft/pageList',{params})

// postDraft(
//     {
//         draftTitle: '',
//         draftContext: '',
//         draftUser:''
//     }
// )
export const postDraft = (data)=>
    axios.post('/draft/create',data)